Improve fontification of Python assignments with type hints
authorkobarity <kobarity@gmail.com>
Sat, 24 Feb 2024 14:11:02 +0000 (23:11 +0900)
committerStefan Kangas <stefankangas@gmail.com>
Sat, 18 May 2024 20:22:34 +0000 (22:22 +0200)
commitc97e7a2da2e5707fc94c2c5e2ddd5f2395cdb80b
treec63927620fc855bd3c4c36c09890fffb318e1234
parentbbb3038ad9feb1f37e4bef7151b2bc6f18c4123d
Improve fontification of Python assignments with type hints

* lisp/progmodes/python.el (python-font-lock-keywords-maximum-decoration):
Fontify type hints of assignment statement.  (Bug#69357)
* test/lisp/progmodes/python-tests.el
(python-font-lock-assignment-statement-11)
(python-font-lock-assignment-statement-12)
(python-font-lock-assignment-statement-13)
(python-font-lock-assignment-statement-18): Add fontification of type
hints.
(python-font-lock-assignment-statement-19): New test.
lisp/progmodes/python.el
test/lisp/progmodes/python-tests.el